{extend name="base" /}
{block name="title"}添加产品{/block}
{block name="main"}
<link rel="stylesheet" href="/static/index/mails/style.css">
<div class="swarp">
    <form class="am-form" id="add_product" action="<?php echo url('index/mails/do_add_mail'); ?>" method="post" data-am-validator>
        <fieldset>
            <legend>添加邮件信息</legend>

            <div class="am-form-group">
                <label for="">客户名称</label>
                <input type="text" class="" name="name" placeholder="客户名称" required />
            </div>

            <div class="am-form-group">
                <label for="" >邮件类型</label>
                <select id="" name="type">
                    {volist name="mail_type" id="vo"}
                    <option value="{$key}">{$vo}</option>
                    {/volist}
                </select>
                <span class="am-form-caret"></span>
            </div>

            <div class="am-form-group">
                <label for="">邮件日期</label>
                <input type="text" class="" name="mail_date" placeholder="邮件日期" data-am-datepicker readonly required />
            </div>

            <!--div class="am-form-group">
                <label for="doc-ipt-pwd-1">密码</label>
                <input type="password" class="" id="doc-ipt-pwd-1" placeholder="设置个密码吧">
            </div>

            <div class="am-form-group">
                <label for="doc-ta-1">文本域</label>
                <textarea class="" rows="5" id="doc-ta-1"></textarea>
            </div-->

            <p>
                <input type="hidden" name="prod_id" value="{$prod_id}" />
                <button type="submit" class="am-btn am-btn-primary">提交</button>
            </p>
        </fieldset>
    </form>
</div>
{/block}
